-- GENERATED SPELL FOR [Spotted Hippogryph] --


function spell0_23772(pUnit, Event) --@Eye Peck,n/a--
pUnit:FullCastSpellOnTarget(49865,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23772', 5330, 1)
end

function Sorts_23772(pUnit, Event)
local choix_sorts_23772 = math.random(0, 0)
if choix_sorts_23772 == 0 then
pUnit:RegisterEvent('spell0_23772', 1, 1)
end
end

function mob23772_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23772', math.random(1500, 3000), 1)
end

function mob23772_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23772_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23772_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23772, 1, 'mob23772_Action')
RegisterUnitEvent(23772, 2, 'mob23772_Leave')
RegisterUnitEvent(23772, 3, 'mob23772_Kill')
RegisterUnitEvent(23772, 4, 'mob23772_Die')
